package fwk;

import java.util.HashMap;
import java.util.Map;

public class BeanNameHandlerMapping implements HandlerMapping {
	private Map<String, Controller> handlerMapping=new HashMap<String,Controller>();
	@Override
	public void addController(String name, Controller controller) {
		handlerMapping.put(name, controller);
		
	}
	
	public Controller mapController(String beanName){
		return handlerMapping.get(beanName);
	}
}
